// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** txt文件转markdown文本 POST /api/utils/markdown/fileToMarkdown */
export async function markdownFileToMarkdownUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.markdownFileToMarkdownUsingPOSTParams,
  body: string,
  options?: { [key: string]: any },
) {
  return request<Record<string, any>>('/api/utils/markdown/fileToMarkdown', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  });
}
